package com.crm.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.crm.dao.EquipmentTypeDao;
import com.crm.model.EquipmentType;
import com.crm.model.PageBean;
import com.crm.service.EquipmentTypeService;

@Service("equipmentTypeService")
public class EquipmentTypeServiceImpl implements EquipmentTypeService {

    @Resource
    private EquipmentTypeDao equipmentTypeDao;

    @Override
    public List<EquipmentType> list(PageBean pageBean, EquipmentType s_equipmentType) {
        return equipmentTypeDao.list(pageBean, s_equipmentType);
    }

    @Override
    public int count(EquipmentType s_equipmentType) {
        return equipmentTypeDao.count(s_equipmentType);
    }

    @Override
    public void add(EquipmentType equipmentType) {
        equipmentTypeDao.add(equipmentType);
    }

    @Override
    public void update(EquipmentType equipmentType) {
        equipmentTypeDao.update(equipmentType);
    }

    @Override
    public void delete(int id) {
        equipmentTypeDao.delete(id);
    }

    @Override
    public EquipmentType loadById(int id) {
        return equipmentTypeDao.loadById(id);
    }

}
